#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
void jiujiu(int i, int j)
{
	int x = 0;
	for (x = 1; x <= i; x++)
	{
		int y = 0;
		for (y = 1; y <= x; y++)
		{
			printf("%d*%d=%d", y, x, x * y);
		}
		printf("\n");
	}
}
int main()
{
	int i = 0;
	int j = 0;
	scanf("%d %d", &i, &j);
	jiujiu(i, j);
	return 0;
}